<table>
  <thead>
    <tr>
      <th>Creator</th>
      <th>Ip</th>
      <th>File</th>
      <th>Remark</th>
      <th>Result</th>
      <th>Users count</th>
      <th>Imported</th>
      <th colspan="4"></th>
    </tr>
  </thead>

  <tbody>
    <% @sheets.each do |sheet| %>
      <tr>
        <td><%= sheet.creator_id %></td>
        <td><%= sheet.ip %></td>
        <td><%= sheet.file %></td>
        <td><%= sheet.remark %></td>
        <td><%= sheet.result %></td>
        <td><%= sheet.users_count %></td>
        <td><%= sheet.imported %></td>
        <td><%= link_to 'Show', sheet %></td>
        <td><%= link_to '导入', import_sheet_path(sheet), method: :post %></td>
        <td><%= link_to 'Destroy', sheet, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>
